<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
<script>
    //mdn web docs
    /*创建对象的三种方法：
      1.字面量{描述对象}
      2.构建函数创建对象：第一步定义构造函数，第二步实例化对象
      3.new Object()
    */
   console.log(Math.PI);
   console.log(Math.max(1,45,78,1236,-4556,0,99,-1111));
   //console.log(Math.ceil(Math.random()*34));
   function sjs(){
    return Math.ceil(Math.random()*100);
   }
   console.log(sjs());
   console.log('-----------');
   let students=['张三','李四','王五','张丽丽','李晓霞','王菲菲'];
   function sjdm(){
    let i=Math.ceil(Math.random()*students.length);
    return students[i];
   }
   console.log(sjdm());
   
</script>
</body>
</html>